<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War: Référence de la classe gfx::ImgAnim</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../annotated.html"><span>Liste&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../functions.html"><span>Membres&nbsp;de&nbsp;classe</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="../../d0/d1c/namespacegfx.html">gfx</a>::<a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html">ImgAnim</a>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe gfx::ImgAnim</h1><!-- doxytag: class="gfx::ImgAnim" --><!-- doxytag: inherits="gfx::Anim" -->Comme <a class="el" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps.">Anim</a> à la diférence près que la classe utilise une image avec tout les sprites au lieu des couches d'une layer.  
<a href="#_details">Plus de détails...</a>
<p>
<code>#include &lt;<a class="el" href="../../d4/d18/_img_anim_8h-source.html">ImgAnim.h</a>&gt;</code>
<p>
<div class="dynheader">
Graphe d'héritage de gfx::ImgAnim:</div>
<div class="dynsection">
<p><center><img src="../../d9/d0b/classgfx_1_1_img_anim__inherit__graph.png" border="0" usemap="#d9/d8b/gfx_1_1_img_anim__inherit__map" alt="Inheritance graph"></center>
<map name="d9/d8b/gfx_1_1_img_anim__inherit__map">
<area shape="rect" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps." alt="" coords="16,5,91,32"></map>
<center><font size="2">[<a href="../../graph_legend.html">légende</a>]</font></center></div>

<p>
<a href="../../de/dbd/classgfx_1_1_img_anim-members.html">Liste de tous les membres</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#7f9c8ad96a5c009a6a60dbc81f957add">ImgAnim</a> (const sf::Image &amp;Img, const unsigned int &amp;nbFrame, const unsigned int &amp;line=1, const sf::Vector2f &amp;Position=sf::Vector2f(0, 0), const sf::Vector2f &amp;Scale=sf::Vector2f(1, 1), float Rotation=0.f, const sf::Color &amp;Col=sf::Color(255, 255, 255, 255))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f3aaaa888f1e83d6f939cf52aedcd99"></a><!-- doxytag: member="gfx::ImgAnim::setFrameDim" ref="5f3aaaa888f1e83d6f939cf52aedcd99" args="(const unsigned int &amp;w, const unsigned int &amp;h)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#5f3aaaa888f1e83d6f939cf52aedcd99">setFrameDim</a> (const unsigned int &amp;w, const unsigned int &amp;h)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis les dimension d'un frame. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcde71eeb5da2e150bc3b551af4a9b5"></a><!-- doxytag: member="gfx::ImgAnim::frameDim" ref="9bcde71eeb5da2e150bc3b551af4a9b5" args="() const " -->
sf::IntRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#9bcde71eeb5da2e150bc3b551af4a9b5">frameDim</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la dimension d'un frame. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3d685bce91a02f70cb80f11c96e6803"></a><!-- doxytag: member="gfx::ImgAnim::setOffset" ref="c3d685bce91a02f70cb80f11c96e6803" args="(const unsigned int &amp;x, const unsigned int &amp;y)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#c3d685bce91a02f70cb80f11c96e6803">setOffset</a> (const unsigned int &amp;x, const unsigned int &amp;y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis le décalage de l'animation sur l'image (permet d'avoir plusieurs anim sur une seule image). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d98466fff76ebcf53e4fb0f37a5ba9eb"></a><!-- doxytag: member="gfx::ImgAnim::offset" ref="d98466fff76ebcf53e4fb0f37a5ba9eb" args="() const " -->
sf::IntRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#d98466fff76ebcf53e4fb0f37a5ba9eb">offset</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne un rectangle avec l'offset. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6945d2f1b47a330401704e178b6b6b08"></a><!-- doxytag: member="gfx::ImgAnim::setAnimRow" ref="6945d2f1b47a330401704e178b6b6b08" args="(const unsigned int &amp;row)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#6945d2f1b47a330401704e178b6b6b08">setAnimRow</a> (const unsigned int &amp;row)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis la ligne animé courante. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="715e923e35861d35a3f856b21c1204dd"></a><!-- doxytag: member="gfx::ImgAnim::animRow" ref="715e923e35861d35a3f856b21c1204dd" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#715e923e35861d35a3f856b21c1204dd">animRow</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la ligne animé courante. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dbbce9a3fcd0ff52240c4267c165c611"></a><!-- doxytag: member="gfx::ImgAnim::setFrame" ref="dbbce9a3fcd0ff52240c4267c165c611" args="(const unsigned int &amp;count)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#dbbce9a3fcd0ff52240c4267c165c611">setFrame</a> (const unsigned int &amp;count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis le frame courant. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9a586f105bd86bf8aca8f2f60a99b6c"></a><!-- doxytag: member="gfx::ImgAnim::refreshSubRect" ref="c9a586f105bd86bf8aca8f2f60a99b6c" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#c9a586f105bd86bf8aca8f2f60a99b6c">refreshSubRect</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Met à jour le rectangle d'animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c69734b4fc8c084216301bc36b05fc7"></a><!-- doxytag: member="gfx::ImgAnim::setSize" ref="7c69734b4fc8c084216301bc36b05fc7" args="(const unsigned int &amp;size)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#7c69734b4fc8c084216301bc36b05fc7">setSize</a> (const unsigned int &amp;size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis le nombre de frame dans l'animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="30ea08ced2ffec5c21eb44b99b58c998"></a><!-- doxytag: member="gfx::ImgAnim::getSize" ref="30ea08ced2ffec5c21eb44b99b58c998" args="() const " -->
virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d31/classgfx_1_1_img_anim.html#30ea08ced2ffec5c21eb44b99b58c998">getSize</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne le nombre de frame. <br></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres protégées</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a349a1f2e1fea3af821f2f151e3bbad"></a><!-- doxytag: member="gfx::ImgAnim::Render" ref="9a349a1f2e1fea3af821f2f151e3bbad" args="(sf::RenderTarget &amp;Target) const " -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Render</b> (sf::RenderTarget &amp;Target) const </td></tr>

</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Comme <a class="el" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps.">Anim</a> à la diférence près que la classe utilise une image avec tout les sprites au lieu des couches d'une layer. <dl compact><dt><b>Exemples: </b></dt><dd>

<p>
<a class="el" href="../../df/d25/main_8cpp-example.html#_a7">main.cpp</a>.</dl>
<p>Définition à la ligne <a class="el" href="../../d4/d18/_img_anim_8h-source.html#l00015">15</a> du fichier <a class="el" href="../../d4/d18/_img_anim_8h-source.html">ImgAnim.h</a>.</p>
<hr><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" name="7f9c8ad96a5c009a6a60dbc81f957add"></a><!-- doxytag: member="gfx::ImgAnim::ImgAnim" ref="7f9c8ad96a5c009a6a60dbc81f957add" args="(const sf::Image &amp;Img, const unsigned int &amp;nbFrame, const unsigned int &amp;line=1, const sf::Vector2f &amp;Position=sf::Vector2f(0, 0), const sf::Vector2f &amp;Scale=sf::Vector2f(1, 1), float Rotation=0.f, const sf::Color &amp;Col=sf::Color(255, 255, 255, 255))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gfx::ImgAnim::ImgAnim           </td>
          <td>(</td>
          <td class="paramtype">const sf::Image &amp;&nbsp;</td>
          <td class="paramname"> <em>Img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int &amp;&nbsp;</td>
          <td class="paramname"> <em>nbFrame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int &amp;&nbsp;</td>
          <td class="paramname"> <em>line</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const sf::Vector2f &amp;&nbsp;</td>
          <td class="paramname"> <em>Position</em> = <code>sf::Vector2f(0,&nbsp;0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const sf::Vector2f &amp;&nbsp;</td>
          <td class="paramname"> <em>Scale</em> = <code>sf::Vector2f(1,&nbsp;1)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>Rotation</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const sf::Color &amp;&nbsp;</td>
          <td class="paramname"> <em>Col</em> = <code>sf::Color(255,&nbsp;255,&nbsp;255,&nbsp;255)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>img</em>&nbsp;</td><td>Image avec les sprites </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rows</em>&nbsp;</td><td>Nombre de frame par animation </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>line</em>&nbsp;</td><td>Nombre de ligne d'animation </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>leReste</em>&nbsp;</td><td>Voir la documentation de sf::Sprite </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/<a class="el" href="../../d4/d18/_img_anim_8h-source.html">ImgAnim.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:42 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
